import {GET_GOODS_KINDS} from "../actionType";

let kinds = {
    kind:"xianlian"
}
export let kindreducer = (state=kinds,action)=>{
    switch (action.type) {
        case GET_GOODS_KINDS:
                console.log(action.data);
                console.log(state)
            return {...state,kind:action.data}
            break;
    
        default:
            return state;
            break;
    }
}